/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.faare.struts.service;

import opiam.admin.faare.persistence.javabeans.JBTop;
import opiam.admin.faare.service.UserContext;


/**
 * Classes which implement code to activate or deactivate menu elements
 * must implement this interface.
 */
public interface MenuFeaturePluginInterface
{
    /**
     * Checks whether a menu element can be displayed or not.
     *
     * @param featureName menu element name
     * @param entry object set as parameter in the menu element configuration
     * @param userContext connected user context
     *
     * @return true to display the menu element, false not to display it.
     */
    boolean isActive(String featureName, JBTop entry, UserContext userContext);
}
